import 'package:flutter/material.dart';
import 'package:provider_shopper/screens/my_catalog.dart';

class MyLogin extends StatelessWidget {
  const MyLogin({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Container(
          padding: EdgeInsets.all(80),
          child: Column(
            children: [
              Text('Welcome', style: Theme.of(context).textTheme.headlineLarge),
              TextFormField(decoration: InputDecoration(hintText: 'Username')),
              TextFormField(
                decoration: InputDecoration(hintText: 'Password'),
                obscureText: true,
              ),
              SizedBox(height: 24),
              ElevatedButton(
                onPressed: () {
                  Navigator.pushReplacementNamed(context, MyCatalog.myCatalogKey);
                },
                style: ElevatedButton.styleFrom(foregroundColor: Colors.yellow),
                child: Text('ENTER'),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
